package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CAfterWormUpMessage extends AbstractS2CMessage {
	String playerId;
//	short x;
//	short y;
//	byte dir;
//	short endurance;
//	List<Short> x;
//	List<Short> y;

//	public S2CWormUpAttackMessage(String playerId, short[] x, short[] y) {
//		this.playerId = playerId;
//		this.x = new ArrayList<Short>();
//		for (short i : x)
//			this.x.add(i);
//		this.y = new ArrayList<Short>();
//		for (short i : x)
//			this.y.add(i);
//	}

	public S2CAfterWormUpMessage(String playerId) {
		this.playerId = playerId;
//		this.x = x;
//		this.y = y;
//		this.dir = dir;
//		this.endurance = endurance;
	}

	@Override
	protected void writeMessage() {
		writeString(playerId);
//		writeShort(x);
//		writeShort(y);
//		writeByte(dir);
//		writeShort(endurance);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_WORMUP_ATTACK_AFTER;
	}

}
